<?php 	

	include './Model.class.php';
	include './Page.class.php';
	$goods = new Model('goods');

	$count = $goods->count();

	$page = new Page($count,16);

	$limit = $page->getLimit();

	$res = $goods->limit($limit)->select();

	echo json_encode($res);

 ?>